#{extends 'main.html' /} #{set title:'favoritesPage.html' /}

<!-- Start Marwa Elshenawy 
This is the page where the registered user can view his list of favorite tutorial
@author Marwa Elshenawy -->

<body style="background-color: White;">

	<h2>
		<font size="5" face="Arial" color="Green"> <i> Your
				Favorites List : </i>
		</font>
	</h2>
	#{ifnot favoriteTuts}
	<p>You have no favorite Tutorials</p>
	#{/ifnot} #{list items:favoriteTuts, as:'favList'}
	<li><a href="/Tutorials/tutorialPage?tutId=${favList.id}">${favList.Title.raw()}</a></li>
	#{/list}
	<p>
		<br> <a href="@{Application.viewProfile()}">Back to Profile
			Page</a>
</body>